package com.handpay.nocardpay.baselibrary.guide.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;

/**
 * Created by lyang on 2017/2/20.
 */

public class VersionBean extends BaseResponseBean implements Parcelable {
    private String dgTrade;
    private String forcedUpdate;
    private String packages;
    private String platform;
    private String terminalUserID;
    private String version;
    private String versionType;
    private String url;
    private String description;
    private String pollTime;
    private int showCreditPage;

    public String getDgTrade() {
        return dgTrade;
    }

    public void setDgTrade(String dgTrade) {
        this.dgTrade = dgTrade;
    }

    public String getForcedUpdate() {
        return forcedUpdate;
    }

    public void setForcedUpdate(String forcedUpdate) {
        this.forcedUpdate = forcedUpdate;
    }

    public String getPackages() {
        return packages;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getTerminalUserID() {
        return terminalUserID;
    }

    public void setTerminalUserID(String terminalUserID) {
        this.terminalUserID = terminalUserID;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getVersionType() {
        return versionType;
    }

    public void setVersionType(String versionType) {
        this.versionType = versionType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPollTime() {
        return pollTime;
    }

    public void setPollTime(String pollTime) {
        this.pollTime = pollTime;
    }

    public int getShowCreditPage() {
        return showCreditPage;
    }

    public void setShowCreditPage(int showCreditPage) {
        this.showCreditPage = showCreditPage;
    }

    public VersionBean() {
    }

    @Override
    public String toString() {
        return "VersionBean{" +
                "dgTrade='" + dgTrade + '\'' +
                ", forcedUpdate='" + forcedUpdate + '\'' +
                ", packages='" + packages + '\'' +
                ", platform='" + platform + '\'' +
                ", terminalUserID='" + terminalUserID + '\'' +
                ", version='" + version + '\'' +
                ", versionType='" + versionType + '\'' +
                ", url='" + url + '\'' +
                ", description='" + description + '\'' +
                ", pollTime='" + pollTime + '\'' +
                ", showCreditPage=" + showCreditPage +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.dgTrade);
        dest.writeString(this.forcedUpdate);
        dest.writeString(this.packages);
        dest.writeString(this.platform);
        dest.writeString(this.terminalUserID);
        dest.writeString(this.version);
        dest.writeString(this.versionType);
        dest.writeString(this.url);
        dest.writeString(this.description);
        dest.writeString(this.pollTime);
        dest.writeInt(this.showCreditPage);
    }

    protected VersionBean(Parcel in) {
        super(in);
        this.dgTrade = in.readString();
        this.forcedUpdate = in.readString();
        this.packages = in.readString();
        this.platform = in.readString();
        this.terminalUserID = in.readString();
        this.version = in.readString();
        this.versionType = in.readString();
        this.url = in.readString();
        this.description = in.readString();
        this.pollTime = in.readString();
        this.showCreditPage = in.readInt();
    }

    public static final Creator<VersionBean> CREATOR = new Creator<VersionBean>() {
        @Override
        public VersionBean createFromParcel(Parcel source) {
            return new VersionBean(source);
        }

        @Override
        public VersionBean[] newArray(int size) {
            return new VersionBean[size];
        }
    };
}